﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JXPlatform.GIS.Models;
using JXPlatform.Infrastructure.Interfaces.GIS;

namespace JXPlatform.GIS.Services
{
    [Export(typeof(IPointService))]
    public class MemPointService : List<IPoint>, IPointService
    {
        public IQueryable<IPoint> GetPoints()
        {
            return this.AsQueryable();
        }

        public void InsertPoint(IPoint point)
        {
            Add(point);
        }

        public void DeletePoint(IPoint point)
        {
            Remove(point);
        }

        public IPoint CreatePoint()
        {
            return new Point();
        }

        public int SaveChanges()
        {
            throw new NotImplementedException();
        }
    }
}
